package com.heima.behavior.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {

    /**
     * 查询用户点赞和不喜欢行为
     */
    @GetMapping("/api/v1/behavior/findBehavior")
    Map<String,Boolean> findBehavior(@RequestParam(name = "userId",required = false)Integer userId,
                                     @RequestParam(name = "equipmentId",required = false)String equipmentId,
                                     @RequestParam(name = "articleId")Long articleId,
                                     @RequestParam(name = "type")Integer likeType);
}
